//
//  KDNotyCell1.m
//  WangJingApp
//
//  Created by 魏强 on 17/1/23.
//  Copyright © 2017年 KDTech. All rights reserved.
//

#import "KDNotyCell1.h"
@interface KDNotyCell1 ()
@property (weak, nonatomic) IBOutlet UILabel *titleLb;
@property (weak, nonatomic) IBOutlet UILabel *timeLb;
/**  已签收数量lb */
@property (weak, nonatomic) IBOutlet UILabel *signedNumLb;
/**  未签收数量lb */
@property (weak, nonatomic) IBOutlet UILabel *unSignNumLb;

@end
@implementation KDNotyCell1
#pragma mark - 懒加载区
- (void)setModel:(KDNotyCellModel *)model{
    _model = model;
    self.timeLb.text = model.create_date;
    self.titleLb.text = model.cntnt_title;
    
    
}
#pragma mark - 生命周期区
+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    NSString *cellId =@"KDNotyCell1";
    KDNotyCell1 *cell =[tableView dequeueReusableCellWithIdentifier:cellId];
    if (cell == nil)
    {
        cell =[[[NSBundle mainBundle]loadNibNamed:cellId owner:self options:nil]lastObject];
    }
    //    cell.contentView.backgroundColor = BackGroundColor;
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    return cell;
}

#pragma mark - 板块布置区

#pragma mark - 事件点击区
- (IBAction)signedBtnClick:(UIButton *)sender {
    if (_delegate && [_delegate respondsToSelector:@selector(KDNotyCell1:signedBtnClick:)]) {
        [_delegate KDNotyCell1:self signedBtnClick:sender];
    }
}

- (IBAction)unsignBtnClick:(id)sender {
    if (_delegate && [_delegate respondsToSelector:@selector(KDNotyCell1:unsignedBtnClick:)]) {
        [_delegate KDNotyCell1:self unsignedBtnClick:sender];
    }
    
}
/**
 *  督办按钮被点击了
 */
- (IBAction)supervisionBtnClick:(UIButton *)sender {
    if (_delegate && [_delegate respondsToSelector:@selector(KDNotyCell1:supervisionBtnClick:)]) {
        [_delegate KDNotyCell1:self supervisionBtnClick:sender
         ];
    }
}
#pragma mark - 网络请求区

#pragma mark - 通知接收区
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
